Skip to content

[Precogs Alert] Improper Input Validation detected (CWE-20, Risk: Medium)#1

Open
sameer6pre wants to merge 1 commit intomainfrom
Precogs-fix-hcz7sj0f
Open

[Precogs Alert] Improper Input Validation detected (CWE-20, Risk: Medium)#1
sameer6pre wants to merge 1 commit intomainfrom
Precogs-fix-hcz7sj0f

Conversation

@sameer6pre
Copy link
Owner

Vulnerability Details

  • File Path: File_Organizer/file-organizer.py
  • Vulnerability Type: Improper Input Validation
  • Risk Level: Medium

Explanation:
The code does not validate the 'file_path' and 'destination' variables before using them in the 'shutil.move' function. This could lead to directory traversal attacks or overwriting unintended files if the 'file_path' or 'destination' values are manipulated.

Please review and address the issue accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant